# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-cro
_pkgorig=coral-reef-optimization-algorithm
_commit=25804fc43b735df707821008558e9410dfe4a835
pkgver=0.0.5.1
pkgrel=0
pkgdesc="Implementation of Coral Reef Optimization (CRO) Algorithm"
url="https://github.com/VictorPelaez/coral-reef-optimization-algorithm"
arch="noarch !s390x !riscv64" # py3-scikit-learn, py3-matplotlib
license="MIT"
depends="python3 py3-matplotlib py3-scipy py3-numpy py3-scikit-learn py3-pandas"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/VictorPelaez/$_pkgorig/archive/$_commit/$_pkgorig-$_commit.tar.gz"
builddir="$srcdir/$_pkgorig-$_commit"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
1d6fd639fbd7e138535323e5b27a4da66f6dcf46ee1603eaf39eea4fe9d4fcf638df6419fa07941b9500accda1134d6a84e53b3031892c2047c5ef286958de11  py3-cro-0.0.5.1.tar.gz
"
